<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Lord代码库</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="description" content="Description">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <link rel="shortcut icon" href="_media/favicon.ico" type="image/x-icon">
  <link rel="icon" sizes="any" mask="" href="_media/icon.svg">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
  <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css"/> -->
</head>

<body>
  <div id="app"></div>
  <script>
    window.$docsify = {
      name: '《Lord代码库》', // 配置项目名
      repo: 'https://gitee.com/wsc_lord/starboy.coding.me', // 配置代码库地址

      //更改路由时自动滚动到屏幕顶部
      auto2top: true, 

      // 加载导航 -> _navbar.md
      loadNavbar: false,

      // 封面页，默认加载 _coverpage.md
      coverpage: true,
      onlyCover: true,

      // 加载侧边栏 _sidebar.md subMaxLevel 配置菜单层级，默认仅显示一级 类型是number(数字)，表示显示的目录层级
      loadSidebar: true, 
      subMaxLevel: 3, 
      alias: {
        '/.*/_sidebar.md': '/_sidebar.md'
      },

      // 搜索功能相关
      search: {
        maxAge: 86400000, // 过期时间，单位毫秒，默认一天
        paths: 'auto',
        placeholder: '🔍 搜索一下！',
        noData: '😞 找不到结果!',
        depth: 6          // 搜索标题的最大程级, 1 - 6
      },

      // 分页相关配置
      pagination: {
        previousText: '上一章节',
        nextText: '下一章节',
        crossChapter: true
      },

      // 代码块点击复制
      copyCode: {
        buttonText : 'Copy to clipboard',
        errorText  : 'Error',
        successText: 'Copied'
      },

      plugins: [
        function(hook, vm) {
          hook.doneEach(function() {
            document.querySelectorAll(".sidebar-nav > ul > li").forEach(
              function(node, index, nodelist) {
                var span = document.createElement("span");
                span.innerHTML = node.firstElementChild.textContent;
                span.style.cursor = "pointer";
                span.onclick = function(event) {
                  var ul = event.target.nextElementSibling;
                  if (ul.style.display === "none") {
                    ul.style.display = "block";
                  } else {
                    ul.style.display = "none";
                  }
                };
                node.firstChild.replaceWith(span);
                node.lastChild.style.display = "none";
            });
            var active = document.querySelector(".sidebar-nav li.active");
            if (active) {
              active.parentElement.style.display = "block";
            }
          });
        }
      ]
    }
  </script>
  <script src="http://cdn.staticfile.org/docsify/4.9.4/docsify.min.js"></script>
  <script src="http://cdn.staticfile.org/docsify/4.9.4/plugins/search.min.js"></script>
  <script src="http://cdn.staticfile.org/docsify/4.9.4/plugins/zoom-image.min.js"></script>

  <script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
  <script src="//unpkg.com/prismjs/components/prism-json.min.js"></script>
  <script src="//unpkg.com/prismjs/components/prism-nginx.min.js"></script>
  <script src="//unpkg.com/prismjs/components/prism-asm6502.js"></script>
  <script src="//unpkg.com/prismjs/components/prism-makefile.js"></script>
  <script src="//unpkg.com/prismjs/components/prism-docker.js"></script>
  <script src="//unpkg.com/prismjs/components/prism-vim.min.js"></script>
  <script src="//unpkg.com/docsify-copy-code"></script>

  <script src="http://cdn.staticfile.org/prism/9000.0.1/components/prism-bash.min.js"></script>
  <script src="http://cdn.staticfile.org/prism/9000.0.1/components/prism-java.min.js"></script>
  <script src="http://cdn.staticfile.org/prism/9000.0.1/components/prism-sql.min.js"></script>
  <script src="https://cdn.staticfile.org/prism/9000.0.1/components/prism-css.min.js"></script>
  <script src="https://cdn.staticfile.org/prism/9000.0.1/components/prism-http.min.js"></script>
  <script src="https://cdn.staticfile.org/prism/9000.0.1/components/prism-css-extras.min.js"></script>
  <script src="https://cdn.staticfile.org/prism/9000.0.1/components/prism-javascript.min.js"></script>
  <script src="https://cdn.staticfile.org/prism/9000.0.1/components/prism-markdown.min.js"></script>
  <script src="https://cdn.staticfile.org/prism/9000.0.1/components/prism-python.min.js"></script>
  <script src="https://cdn.staticfile.org/prism/9000.0.1/components/prism-typescript.min.js"></script>
  <script src="http://cdn.staticfile.org/prism/9000.0.1/components/prism-git.min.js"></script>
  <script src="http://cdn.staticfile.org/prism/9000.0.1/components/prism-yaml.min.js"></script>
  <script src="https://cdn.staticfile.org/prism/9000.0.1/components/prism-powershell.min.js"></script>

  <!-- <script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script> -->
  <script src="//cdn.jsdelivr.net/npm/prismjs@1.23.0/components/prism-django.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1.23.0/components/prism-git.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1.23.0/components/prism-go.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1.23.0/components/prism-plsql.min.js"></script>

</body>
</html>
